package com.cloud.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * @ClassName: Log
 * @Description: 日志表(sys_log)实体类
 * @Version: v1.0.0
 * @Author: makejava
 * @Date: 2020-03-30
 * Modification History:
 * Date             Author      Version     Description
 * -------------------------------------------------------------
 * 2020-03-30      makejava      v1.0.0      创建
 * 2020-08-10      yangyuwei      v1.5.0      等价于请求信息
 */
@Data
@Accessors(chain = true)
public class SysLog  {


    //编号
    private String id;

    //请求发起人用户名
    private String reqUser;
    //请求发起人账号id
    private String reqAccountId;

    //请求头
    private String reqHeader;

    //请求参数
    private String reqParam;

    //请求时间
    private Date reqTime;

    //响应状态码
    private Integer respCode;

    //响应头
    private String respHeader;

    //响应数据
    private String respBody;

    //响应时间
    private Date respTime;

    //请求处理时间
    private Long processTime;

    //请求地址
    private String reqAddr;

    //请求来源ip地址
    private String reqHost;

    //skywalking的traceId
    private String skyTraceId;

    //微服务应用名-调用方
    private String sourceApplicationName;

    //微服务应用名-接收方
    private String applicationName;

    //请求方法
    private String reqMethod;
    //账号类型 
    private String acctType;
    //调用链id
    private String traceId;
    //当前请求id
    private String spanId;
    //上一级的id
    private String parentId;
    //微服务实例服务器ip
    private String instance;
    //请求转发开发时间
    private Date callStart;
    //请求转发结束时间
    private Date callEnd;
    //请求转发持续时间
    private Long callTime;
    //创建人id"
    protected String crtUser;
    //创建人姓名"
    protected String crtName;
    //创建时间"
    protected Date crtTime;
    //创建请求ip地址"
    protected String crtHost;
    //最后修改人id"
    protected String updUser;
    //最后修改人姓名"
    protected String updName;
    //最后修改时间"
    protected Date updTime;
    //最后修改请求ip地址"
    protected String updHost;
    //逻辑删除标识：1=删除；0=未删除"
    protected Integer delFlag = 0;

}